home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / DEMOCIAL / DEMOSIDK.LZH / INSTALL.BAT next >
DOS Batch File  |  1991-01-24  |  3KB  |  107 lines

  1. echo off
  2. cls
  3. if not exist sk2demo.zip goto error
  4. if !==%1! goto auto
  5. goto manual
  6.  
  7. :ERROR
  8. cls
  9. echo ----------------------------------------------------------------
  10. echo -   ERROR
  11. echo -
  12. echo -      You must run INSTALL from the DOS prompt of the drive
  13. echo -      that contains the Sidekick 2.0 Demo disk, (e.g. A: or B:)
  14. echo -
  15. echo -   Please correct and try again.
  16. echo ----------------------------------------------------------------
  17. goto exit
  18.  
  19.  
  20. :AUTO
  21. echo .........................................................................
  22. echo :                                    :
  23. echo :  SIDEKICK 2.0 Demo Installation                    :
  24. echo :                                    :
  25. echo :  This demo requires 581K of free space on your hard disk.        :
  26. echo :                                    :
  27. echo :  To install the Sidekick 2.0 Demo on C:\SK2DEMO, press any key now.    :
  28. echo :                                    :
  29. echo :  To install on a drive other than C:                    :
  30. echo :     1. Press [CTRL] [C] and answer Y to "Terminate batch file?"    :
  31. echo :     2. Type INSTALL X then press [ENTER]                      :
  32. echo :           where:   X is the letter of the desired drive        :
  33. echo :                    DO NOT add a colon (:) to the drive letter.    :
  34. echo :                    An \SK2DEMO directory is created automatically.    :
  35. echo :                                    :
  36. echo :           example: INSTALL E - installs onto E:\SK2DEMO             :
  37. echo :                                    :
  38. echo :.......................................................................:
  39. echo To install on C:\SK2DEMO,
  40. pause
  41. cls
  42. echo Now installing the Sidekick 2.0 Demo on C:\SK2DEMO
  43. md c:\SK2DEMO
  44. echo on
  45. unzip sk2demo.zip C:\SK2DEMO
  46. echo off
  47. if errorlevel 1 goto space
  48. cls
  49. c:
  50. cd\sk2demo
  51. goto end
  52.  
  53. :MANUAL
  54. chkdsk %1:
  55. if errorlevel 1 goto drive
  56. goto ok
  57.  
  58. :DRIVE
  59. cls
  60. echo ------------------------------------------------------------
  61. echo -  ERROR
  62. echo -
  63. echo -     You have specified an invalid drive parameter (%1:).
  64. echo -
  65. echo -        If you see two colons here (%1:), please
  66. echo -        type INSTALL X without adding a colon.
  67. echo -
  68. echo -        X is the letter of the desired drive
  69. echo -
  70. echo -  Please correct and try again.
  71. echo ------------------------------------------------------------
  72. goto exit
  73.  
  74. :SPACE
  75. cls
  76. echo --------------------------------------------------------------
  77. echo -  ERROR
  78. echo -
  79. echo -    There is insufficient space on the specified drive (%1:)
  80. echo -
  81. echo -    -or-  You have specified an invalid drive parameter.
  82. echo -
  83. echo -        If you see two colons here (%1:), please
  84. echo -        type INSTALL X without adding a colon.
  85. echo -
  86. echo -        X is the letter of the desired drive
  87. echo -
  88. echo -  Please correct and try again.
  89. echo --------------------------------------------------------------
  90. goto exit
  91.  
  92. :OK
  93. echo Now installing the Sidekick 2.0 Demo on %1:\SK2DEMO
  94. md %1:\SK2DEMO
  95. echo on
  96. unzip sk2demo.zip %1:\SK2DEMO
  97. echo off
  98. if errorlevel 1 goto space
  99. cls
  100. %1:
  101. cd\SK2DEMO
  102.  
  103. :END
  104. echo  Type DEMO and press [ENTER] to view the Sidekick 2.0 Demo
  105.  
  106. :EXIT
  107.